package com.yh.construct.decorator.sendMessage;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-08 21:27
 * @problem:
 **/
public class MessageDecorate extends Message{
    protected Message message;

    public MessageDecorate(Message message) {
        this.message = message;
    }

    @Override
    protected void sendMsg() {
        this.message.sendMsg();
    }
}
